//
//  KLSGShengMingController.m
//  KaoLaShiGuangFM
//
//  Created by lanou3g on 15/11/2.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "KLSGShengMingController.h"
#import "AppDelegate.h"

@interface KLSGShengMingController ()

@end

@implementation KLSGShengMingController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
    [self addSubViews];
}

- (void)addSubViews
{
    
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:self.view.frame];

    imageV.image = [UIImage imageNamed:@"ahh.jpg"];

    [self.view addSubview:imageV];
    
    
    UIView *view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    view.backgroundColor = [UIColor blackColor];
    view.alpha = 0.6;
    [self.view addSubview:view];
    
    UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - 300) / 2, 0, 300, kScreenHeight)];
//    lable.textAlignment = NSTextAlignmentCenter;
    lable.text = @"版权声明\n\n\t       本app所有内容，包括文字、图片、音频、视频、软件、程序、以及版式设计等均在网上搜集。\n\t       访问者可将本app提供的内容或服务用于个人学习、研究或欣赏，以及其他非商业性或非盈利性用途，但同时应遵守著作权法及其他相关法律的规定，不得侵犯本app及相关权利人的合法权利。除此以外，将本app任何内容或服务用于其他用途时，须征得本app及相关权利人的书面许可，并支付报酬。\n\t       本app内容原作者如不愿意在本app刊登内容，请及时通知本app，予以删除。\n\n地址：北京市海淀区清河大道五彩城8楼\n电话：15664786389\n电子邮箱：klsgthree@163.com";
    lable.numberOfLines = 0;
    lable.textColor = [UIColor orangeColor];
//    lable.backgroundColor = [UIColor redColor];
    [self.view addSubview:lable];
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self dismissViewControllerAnimated:YES completion:nil];
    AppDelegate *app = [UIApplication sharedApplication].delegate;
    [app.leftSliderVC setPanEnabled:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
